<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
$count = count($this->items);
?>
<link rel="stylesheet" href="<?php echo JURI::root().'components/com_shop/assets/'; ?>style.css" type="text/css" />
<div class="search_title_head">
Tổng số kết quả tìm được <span style="color:#F00; font-weight:bold;">( <?php echo $this->total; ?> ) </span> kết quả
</div>
<ul class="search_result">
<?php for ($i = 0;$i < $count;$i++) : ?>
	<?php $item = $this->items[$i]; ?>
    <?php $link = JRoute::_('index.php?option=com_shop&view=employer&id='.$item->id.':'.JApplication::stringURLSafe($item->title)); ?>
	<li>
		<a href="<?php echo $link; ?>" title="<?php echo $item->title; ?>"><div class="giaothuong-title"><?php echo $item->title; ?></div></a>
        <div class="giaothuong-content"><?php $introtext = $this->getText($item->text, 20);
                echo $introtext; ?></div>
    </li>
<?php endfor; ?>
</ul>